﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECS.DAL.Entity
{
    public class DimensionRecord : ObjectContext
    {
        #region private properties
        private string _slipId = string.Empty;
        public string _dimesionId = string.Empty;
        private int _dimensionNumber = 0;
        private float _length = 0;
        private float _width = 0;
        private float _height = 0;
        private int _pieceCount = 0;
        private DateTime _createDate;
        private string _createBy = string.Empty;
        #endregion

        #region public properties
        /// <summary>
        /// Slip ID
        /// </summary>
        public string SlipId
        {
            set
            {
                _slipId = value;
                UpdateObject();
            }
            get { return _slipId; }
        }
        public string DimensionId
        {
            set
            {
                _dimesionId = value;
                UpdateObject();
            }
            get { return _dimesionId; }
        }
        /// <summary>
        /// Dimension Number
        /// </summary>
        public int DimensionNumber
        {
            set
            {
                _dimensionNumber = value;
                UpdateObject();
            }
            get { return _dimensionNumber; }
        }
        /// <summary>
        /// Length
        /// </summary>
        public float Length
        {
            set
            {
                _length = value;
                UpdateObject();
            }
            get { return _length; }
        }
        /// <summary>
        /// Width
        /// </summary>
        public float Width
        {
            set
            {
                _width = value;
                UpdateObject();
            }
            get { return _width; }
        }
        /// <summary>
        /// Height
        /// </summary>
        public float Height
        {
            set
            {
                _height = value;
                UpdateObject();
            }
            get { return _height; }
        }
        /// <summary>
        /// Piece count
        /// </summary>
        public int PieceCount
        {
            set
            {
                _pieceCount = value;
                UpdateObject();
            }
            get { return _pieceCount; }
        }
        /// <summary>
        /// Create date
        /// </summary>
        public DateTime CreateDate
        {
            set
            {
                _createDate = value;
                UpdateObject();
            }
            get { return _createDate; }
        }
        public string CreateBy
        {
            set
            {
                _createBy = value;
                UpdateObject();
            }
            get { return _createBy; }
        }
        /// <summary>
        /// application Id
        /// </summary>
        public string AppId { set; get; }
        /// <summary>
        /// Device
        /// </summary>
        public string Device { set; get; }
        /// <summary>
        /// User ID
        /// </summary>
        public string UserId { set; get; }
        #endregion
        
    }
}
